<script setup lang="ts">
defineProps<{
  title: string
}>()
</script>

<template>
  <div class="item row">
    <div class="title">{{ title }}</div>
    <div class="right row">
      <slot></slot>
      <img src="../imgs/ic_right.svg" alt="" />
    </div>
  </div>
</template>

<style scoped>
.item {
  padding: 10px 7px;
  border-bottom: 1px solid #eee;
}
img {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
</style>
